﻿#ifndef CHNSWITCHUNIT_H
#define CHNSWITCHUNIT_H

#include <QWidget>
#include <QLabel>
#include <QPushButton>
#include <QCheckBox>
#include <QComboBox>
#include <QResizeEvent>
#include <QHBoxLayout>

enum E_COL
{
    COL_RED,
    COL_GREEN,
    COL_GRAY,
};

class ChnSwitchUnit : public QWidget
{
    Q_OBJECT
public:
    explicit ChnSwitchUnit(int wnd_index,QWidget *parent = nullptr);

    void set_col_state(enum E_COL col_type);
signals:

public slots:
    void slot_chan_index_switch(int index);
protected:
    void resizeEvent(QResizeEvent *event);

private:
    QCheckBox* chk_show_;
    QLabel* lab_colstate_;
    QComboBox* comb_chn_;
    QHBoxLayout* hbox_lay_;
    QLabel* lab_video_;
};

#endif // CHNSWITCHUNIT_H
